package com.ws.haungjia.Service.ServiceImp;

import com.ws.haungjia.Bean.User;
import com.ws.haungjia.Service.QiantaiyonghuServlet;
import com.ws.haungjia.mapper.QiantaiyonghuguanliMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class QiantaiyonghuServletImp implements QiantaiyonghuServlet {
    @Autowired
    QiantaiyonghuguanliMapper qian;
    public List<User> cha(){
        return qian.cha();
    }

    @Override
    public int shan(int id) {
        return qian.shan(id);
    }
    public int zengjia(String name, String pass, int shouji, String touxiang, Date zhuceshijian) {
        return qian.zengjia(name,pass,shouji,touxiang,zhuceshijian);
    }

    @Override
    public User huixian(int id) {
        return qian.huixian(id);
    }

    @Override
    public int xiugai(User user) {
        return qian.xiugai( user);
    }


}
